package com.ruoyi.common.utils.pagehelper;

/**
 * 分页
 */
public class Pagehelper
{

	public static String buildMySqlPageSql(String sql, int pageNum, int pageSize)
	{
		int startRow = (pageNum - 1) * pageSize;
		int endRow = startRow + pageSize;
		StringBuilder pageSql = new StringBuilder();
		pageSql.append(" limit " + startRow + ", " + endRow);
		return pageSql.toString();
	}
}
